public class demo4 {

    public demo4() throws ClassNotFoundException {
        Class clz= Class.forName("reflect.entity.Person");
        Object obj= null;
        try {
            obj = clz.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        System.out.println(obj);
    }
}
